home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-11-05 | 2.1 KB | 78 lines | [TEXT/MPWi] |
- # M P W 4 1 1 I N S T A L L A T I O N S C R I P T
- #
- # Copyright Apple Computer, Inc. 1990 - All rights reserved.
- #
- #
- # This script is used to install MPW 411 files from the E.T.O. #2 distribution
- # compact disk into the "MPW Folder" on the destination hard disk.
- #
- # Options: None
- #
- # This script makes use of the following Shell variables:
- #
- # {CDVolume} - the name of the CD Distribution volume
- #
- # {DestVolume} - the name of the volume from which the Installer was launched
- #
- # {MacAppFlag} - flag indicating if MacApp is being installed (for MacApp 411)
- #
-
- Set Exit 0
-
- Set DestMPW "{DestVolume}MPW Folder:"
- Set Source411 "{CDVolume}Essentials:MPW 411:"
- Set MacApp411 "{CDVolume}Essentials:MacApp Documentation:Class&Method Reference (411):"
-
- # Copy the 411 User Startup script into the user's MPW Shell directory.
-
- # First, disable the old UserStartup script if one exists.
-
- If "`Exists -f "{DestMPW}UserStartup•~_Help_"`"
- Rename -y "{DestMPW}UserStartup•~_Help_" "{DestMPW}UserStartup.~_Help_"
- End
-
- Duplicate "{Source411}Tools:UserStartup•Help" "{DestMPW}"
-
- # Same thing with the get tool
-
- If "`Exists -f "{DestMPW}Tools:Get"`"
- Rename -y "{DestMPW}Tools:Get" "{DestMPW}Tools:Get.Old"
- End
-
- Duplicate "{Source411}Tools:Get" "{DestMPW}Tools:Get"
-
- # Remove old help system files.
-
- If "`Exists -d "{DestMPW}Help Folder"`"
- Delete -y "{DestMPW}Help Folder"
- End
-
- NewFolder "{DestMPW}Help Folder"
-
- # If requested, copy the entire 411 folder from the CD to the MPW folder
-
- if "{411Option}" == "2" ### copy all of the help files to the hard drive
- Duplicate -y "{Source411}" "{DestMPW}Help Files:"
-
- If "{MacAppFlag}" != "0" ### copy the MacApp help files as well
- Duplicate -y "{MacApp411}MacApp.411" "{DestMPW}Help Files:"
- Duplicate -y "{MacApp411}MacApp.411.index" "{DestMPW}Help Files:"
- End
- End
-
-
- # Setup the 411 directory.
-
- Set HelpDirectory "{DestMPW}Help Folder:"
-
- If not "`Exists -d "{HelpDirectory}"`"
- NewFolder "{HelpDirectory}"
- End
-
- If "{411Option}" == "2"
- Echo "{DestMPW}Help Files:" > "{HelpDirectory}Help_Folder"
- Else
- Echo "{Source411}Help Files" > "{HelpDirectory}Help_Folder"
- End
-
-